package com.rainkaze.lifeharbor.tools.bingwallpaper.model;

import java.util.List;

import lombok.Data;

@Data
public class WallpaperItem {
    private String startdate;
    private String fullstartdate;
    private String enddate;
    private String url;
    private String urlbase;
    private String copyright;
    private String copyrightlink;
    private String title;
    private String quiz;
    private boolean wp;
    private String hsh;
    private int drk;
    private int top;
    private int bot;
    private List<Object> hs;


    public String getFullImageUrl() {
        if (url != null && !url.startsWith("http")) {
            return "https://www.bing.com" + url;
        }
        return url;
    }
}